package com.ninetaildemonfox.zdl.socialproject.mvp.presenter;

import android.support.v7.app.AppCompatActivity;

import com.google.gson.JsonObject;
import com.ninetaildemonfox.zdl.socialproject.http.https.Model;

import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;

/**
 * 创建人： Nine tails fox
 * 创建时间： 2019/8/26
 * 功能描述：
 * 联系方式：1037438704@qq.com
 *
 * @author NineTailDemonFox
 */

public class PicturePresenter {
    public AppCompatActivity me;

    public PicturePresenter(AppCompatActivity me) {
        this.me = me;
    }
    public void lookImage(String token,String img_id,String cover_member_id){
        Model.getInstance().getUserApi().lookImage(token,img_id,cover_member_id)
                .enqueue(new Callback<JsonObject>() {
                    @Override
                    public void onResponse(Call<JsonObject> call, Response<JsonObject> response) {

                    }

                    @Override
                    public void onFailure(Call<JsonObject> call, Throwable t) {

                    }
                });
    }

}
